#!/bin/sh

for name in *.flac; do ffmpeg -i "$name" -ab 512k "${name%.*}.m4a"; done